﻿package com.sgcc.nfc.lock.core.util

object Validators {
    fun isNotBlank(value: String?): Boolean = !value.isNullOrBlank()
    fun isPhone(value: String?): Boolean = value?.matches(Regex("^1[3-9]\\d{9}$")) == true
    fun isPassword(value: String?): Boolean = value?.length ?: 0 >= 6
}
